﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Job.aspx.cs" Inherits="Backend_Job" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Import Namespace="Wsitech.Model" %>
<%@ Import Namespace="Wsitech.BLL" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>文字信息</title>
    <link href="!css/content.css" rel="stylesheet" type="text/css" />
    <script src="!js/jquery-1.7.1.js" type="text/javascript"></script>
    <script src="!js/default.js" type="text/javascript"></script>
    <!--colorbox-->
    <link href="../!js/colorbox/colorbox.css" rel="stylesheet" type="text/css" />
    <script src="../!js/colorbox/jquery.colorbox-min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $('.colorbox').colorbox({
                iframe: true,
                width: 500,
                height: 600
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td class="bgleft" valign="top">
                <img src="/Backend/images/left-top-right.gif" />
            </td>
            <td class="bgcenter" valign="top">
                <div class="title">
                    岗位需求
                </div>
            </td>
            <td class="bgright" width="16" valign="top">
                <img src="/Backend/images/nav-right-bg.gif" />
            </td>
        </tr>
        <tr class="main">
            <td class="bgleft" valign="middle">
                &nbsp;
            </td>
            <td valign="top">
                <!--Content-->
                <div class="content">
                    <div>
                        <div class="list_title">
                            岗位需求列表
                            <p class="add_news">
                                <a href="JobAdd.aspx">添加新岗位</a>
                            </p>
                        </div>
                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="list_table">
                            <tr>
                                <th>
                                    职位
                                </th>
                                <th>
                                    所属公司
                                </th>
                                <th>
                                    部门
                                </th>
                                <th>
                                    工作地点
                                </th>
                                <th>
                                    预览
                                </th>
                                <th>
                                    发布日期
                                </th>
                                <th>
                                    状态
                                </th>
                                <th>
                                    编辑
                                </th>
                            </tr>
                            <asp:Repeater ID="repMain" runat="server" OnItemCommand="repMain_ItemCommand" OnItemDataBound="repMain_ItemDataBound">
                                <ItemTemplate>
                                    <tr>
                                        <td class="t_left">
                                            <%#(Container.DataItem as PositionInfo).PositionName %>
                                        </td>
                                        <td>
                                            <%#CompanyInfoBLL.Instance.GetCompanyName((Container.DataItem as PositionInfo).CompanyId) %>
                                        </td>
                                        <td>
                                            <%#(Container.DataItem as PositionInfo).Department%>
                                        </td>
                                        <td>
                                            <%#(Container.DataItem as PositionInfo).WorkPlace %>
                                        </td>
                                        <td>
                                            <a target="_blank" href="/Profession/JobDetail.aspx?jobid=<%#(Container.DataItem as PositionInfo).PositionId%>">
                                                预览</a>
                                        </td>
                                        <td>
                                            <%#(Container.DataItem as PositionInfo).CreateTime.ToString("yyyy-MM-dd") %>
                                        </td>
                                        <td>
                                            <asp:LinkButton ID="lbtnEnable" CommandName="Enable" CommandArgument="<%#(Container.DataItem as PositionInfo).PositionId %>"
                                                runat="server" class="red"><img src="/Backend/images/disabled.gif" title="点击设为启用" /></asp:LinkButton>
                                            <asp:LinkButton ID="lbtnDisable" CommandName="Disable" CommandArgument="<%#(Container.DataItem as PositionInfo).PositionId %>"
                                                runat="server" class="blue"><img src="/Backend/images/enabled.gif" title="点击设为禁用" /></asp:LinkButton>
                                        </td>
                                        <td>
                                            <a href="JobAdd.aspx?jobid=<%#(Container.DataItem as PositionInfo).PositionId %>">
                                                <img src="images/edit.gif" title="编辑" />
                                            </a>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                            <tr>
                                <td colspan="8">
                                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页"
                                        NextPageText="下一页" PrevPageText="上一页" PageSize="10" Font-Size="12px" ShowInputBox="Always"
                                        AlwaysShow="true" OnPageChanged="AspNetPager1_PageChanged" UrlPaging="true" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                                        ShowCustomInfoSection="Right">
                                    </webdiyer:AspNetPager>
                                </td>
                            </tr>
                        </table>
                    </div>
                    
                </div>
                <!--Content-->
            </td>
            <td class="bgright">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="bg_bottom_left" valign="bottom">
                &nbsp;
            </td>
            <td class="bg_bottom_center">
            </td>
            <td class="bg_bottom_right" valign="bottom">
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
